<?php

class Admin_Form_Shows_ChooseType extends Zend_Form {

    /**
     * Form choose type shows
     * @author Nguyen Manh Hung
     */
    public function init() {
        $this->setAction('')->
                setMethod('post');

        $type = $this->createElement('select', 'post_type');
        $type->setLabel('Chọn Kiểu Sự Kiện/Shows:')
                ->addMultiOptions(array('1' => 'Ca Nhạc', '2' => 'Bóng Đá/Thể Thao'));
        
        $hidden = $this->createElement('hidden', 'post_choosetype');
        $hidden->setValue('true');

        $submit = $this->createElement('submit', 'submit');
        $submit->setAttrib('id', 'submit_register');
        $submit->setLabel('Submit');
        $submit->setAttrib('class', 'formbutton');
        $this->addElement($type)->addElement($hidden)->addElement($submit);
    }

}